const { Service } = require('egg');
const svgCaptcha = require('svg-captcha');
class VerifyService extends Service {
  async getCaptcha() {
    const captcha = svgCaptcha.create({
      size: 4,
      noise: 4,
      ignoreChars: '0o1i',
      fontSize: 38,
      width: 100,
      height: 25,
      // background: '#090909',
      color: true,
    });
    return captcha;
  }
}

module.exports = VerifyService;
